using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class DanhMucThucDon : System.Web.UI.Page
{    
    ThucDon td = new ThucDon();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dataListSP.DataSource = GetData();
            dataListSP.DataBind();
        }
        else
        {
            dataListSP.DataSource = GetData();
            dataListSP.DataBind();
        }
    }

    private DataTable GetData()
    {
        DataTable sanPhamBO = new DataTable("Menu");
        sanPhamBO = td.AllMenu();
        return sanPhamBO;
    }
    protected void dataListSP_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}
